// pages/home/home.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    imgPath: '/images',
    tabbarActive: 'ljmjl',
    imageList:[
      "http://qnstatic.lianhequnmei.com/images/introduce/introduce_01.png",
      "http://qnstatic.lianhequnmei.com/images/introduce/introduce_02.png",
      "http://qnstatic.lianhequnmei.com/images/introduce/introduce_03.png",
      "http://qnstatic.lianhequnmei.com/images/introduce/introduce_04.png",
      "http://qnstatic.lianhequnmei.com/images/introduce/introduce_05.png",
      "http://qnstatic.lianhequnmei.com/images/introduce/introduce_06.png",
      "http://qnstatic.lianhequnmei.com/images/introduce/introduce_07.png",
      "http://qnstatic.lianhequnmei.com/images/introduce/introduce_08.png",
      "http://qnstatic.lianhequnmei.com/images/introduce/introduce_09.png",
      "http://qnstatic.lianhequnmei.com/images/introduce/introduce_10.png",
    ],
    isIPhoneX:false
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    const util = require("../../utils/util")
    this.setData({
      imgPath: util.getImgPath()
    })
    // console.log("this.data.imgPath", this.data.imgPath)

    wx.setNavigationBarTitle({
      title: '了解联合群美',
    })

    this.getequipment()

  },
  getequipment(){
    let screenHeight = wx.getSystemInfoSync().screenHeight
    let bottom = wx.getSystemInfoSync().safeArea.bottom
    let flag = screenHeight !== bottom
    this.setData({
      isIPhoneX: flag
    })
   },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  },
  onChange(event) {
    this.setData({
      tabbarActive: event.detail
    })
  }
})